package com.example.demo.design.strategy_pattern;

/**
 * @Author: liull
 * @Description: 儿童计费方式，减十元
 * @Date: Created in 17:59 2020/11/18
 * @Modified By:
 */
public class ChildrenDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("儿童票：");
        return price - 10;
    }
}
